﻿using Microsoft.AspNetCore.Razor.TagHelpers;
using Util.Ui.Angular.TagHelpers;
using Util.Ui.NgZorro.Components.Layouts.Renders;
using Util.Ui.Renders;

namespace Util.Ui.NgZorro.Components.Layouts; 

/// <summary>
/// 底部布局,生成的标签为&lt;nz-footer&gt;&lt;/nz-footer&gt;,它的父容器为&lt;util-layout&gt;&lt;/util-layout&gt;,即&lt;nz-layout&gt;&lt;/nz-layout&gt;
/// </summary>
[HtmlTargetElement( "util-footer" )]
public class FooterTagHelper : AngularTagHelperBase {
    /// <inheritdoc />
    protected override IRender GetRender( TagHelperContext context, TagHelperOutput output, TagHelperContent content ) {
        var config = new Config( context, output, content );
        return new FooterRender( config );
    }
}